package com.snake.springboot.custom.dao.mybatis.mappers.base;

import com.snake.springboot.custom.dao.mybatis.entity.base.CustCountDO;
import com.snake.springboot.custom.dao.mybatis.entity.base.CustSubAccountDO;
import com.snake.springboot.custom.dao.mybatis.entity.base.CustomDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 商户子账号Mapper
 * 类{@code CustSubAccountMapper} </br>
 * 创建时间：2025/02/08 09:41
 * @author yangxt
 * @see
 */
@Mapper
public interface CustSubAccountMapper {
    int delete(String subAccountId);

    int insertSelective(CustSubAccountDO record);

    int update(CustSubAccountDO record);

    List<CustSubAccountDO> queryCustSubAccountList(CustSubAccountDO queryDO);

    void updatePwd(CustSubAccountDO accountDO);

    CustSubAccountDO queryById(String subAccountId);

    CustSubAccountDO loginAccount(@Param("account") String account, @Param("password") String password);

    CustomDO queryCustomEnable(@Param("customId") String customId, @Param("enable")Integer enable);

    Set<String> queryPerms(String subAccountId);

    CustSubAccountDO queryAcc(String account);

    List<CustCountDO> querySumByCustomIds(@Param("customIds") List<String> customIds);

    int querySubCount(String customId);

}